//
//  UIViewController+ButtonItem.h
//  AmberWeather
//
//  Created by LeeSongtao on 16/3/9.
//  Copyright © 2016年 Amber Weather. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (ButtonItem)

- (void)createLeftBarButtonItemWithTitle:(NSString *)title;

- (void)createLeftBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title;

- (UIBarButtonItem *)createBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title selectorStr:(NSString *)selectorStr;

- (UIBarButtonItem *)createBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title selectorStr:(NSString *)selectorStr image:(NSString *)imageName;

- (void)createLeftBarButtonItemWithFrame:(CGRect)frame image:(NSString *)imageName;


- (void)createLabelLeftBarButtonItemWithTitle:(NSString *)title;

- (void)createLabelLeftBarButtonItemWithTitle:(NSString *)title font:(UIFont *)font;

- (UIBarButtonItem *)createLabelBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title;

- (UIBarButtonItem *)createLabelBarButtonItemWithTitle:(NSString *)title font:(UIFont *)font;

- (UIBarButtonItem *)createLabelBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title font:(UIFont *)font;

- (UIBarButtonItem *)createLabelBarButtonItemWithFrame:(CGRect)frame title:(NSString *)title font:(UIFont *)font textColor:(UIColor *)textColor;

/** 创建默认返回按钮 */
- (void)createBackBarButtonItem;
- (void)createAnotherBackBarButtonItem;
- (void)createRightBackBarButtonItem;
@end
